add a key value pair to hash table